//package com.qst.crop.demo.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
///**
// * 系统配置文件
// */
//@Configuration
//public class AppConfig implements WebMvcConfigurer {
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new LoginInterceptor())
//                .addPathPatterns("/**")
//                .excludePathPatterns("/hello")
//                .excludePathPatterns("/user/reg")
//                .excludePathPatterns("/user/login")
//                .excludePathPatterns("/user/updatepassword2")
//                .excludePathPatterns("/product/getAllPro")
//                .excludePathPatterns("/product/search")
//
////                .excludePathPatterns("/user/updatepassword")
////                .excludePathPatterns("/product/add")
////                .excludePathPatterns("/product/del")
////                .excludePathPatterns("/product/update")
//                .excludePathPatterns("/userpro/addfavorite")
//                .excludePathPatterns("/userpro/getProList")
//
//
////                .excludePathPatterns("/user/exit")
////                .excludePathPatterns("/user/showcontentuser")
////                .excludePathPatterns("/art/detail")
////                .excludePathPatterns("/art/uprcount")
////                .excludePathPatterns("/art/getartbypage")
////                .excludePathPatterns("/css/**")
////                .excludePathPatterns("/editor.md/**")
////                .excludePathPatterns("/img/**")
////                .excludePathPatterns("/js/**")
////                .excludePathPatterns("/login.html")
////                .excludePathPatterns("/reg.html")
////                .excludePathPatterns("/blog_content.html")
////                .excludePathPatterns("/blog_list.html")
//                  ;
//
//    }
//}
